use "gvc2025.dta",clear
svyset psu [pw= weight_adj_3 ], strata(superstrata) single(cer)

//The samples that only exist in single year are dropped
//matched samples
tab wave sty if stsec!=.&edsec!=.
//subsample
tab wave sty if stsec!=.&edsec!=.& overgexcpb==1
//sector share
tab stsec if stsec!=.&edsec!=.& overgexcpb==1
//region share
tab stregion if stsec!=.&edsec!=.& overgexcpb==1

//Table 1 Imports and Labor Market Outcomes
eststo im1: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (im = im_iv)

eststo im2: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (imf imint=imf_iv imint_iv)

eststo im3: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (imva imvs=imva_iv imvs_iv )

eststo im4: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (imt imgvc=imt_iv imgvc_iv)

eststo im5: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (imt imgvcfp imgvcbp imgvcmix=imt_iv imgvcbp_iv imgvcfp_iv imgvcmix_iv)

//Table 2 Imports and Labor Market Outcomes-2SLS/ Table 3 in the supplement materials
eststo im6: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.HEdu c.imgvcfp#1.gender c.imgvcfp#1.aged c.imgvcfp#1.stLintensive c.imgvcfp#1.DPosition c.imgvcfp#1.Largefirm c.imgvcfp#1.Stateowned = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.HEdu c.imgvcfp_iv#1.gender c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.stLintensive c.imgvcfp_iv#1.DPosition c.imgvcfp_iv#1.Largefirm c.imgvcfp_iv#1.Stateowned)

/* Backward Selection
svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.HEdu c.imgvcfp#1.gender c.imgvcfp#1.aged c.imgvcfp#1.stLintensive c.imgvcfp#1.DPosition c.imgvcfp#1.Largefirm = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.HEdu c.imgvcfp_iv#1.gender c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.stLintensive c.imgvcfp_iv#1.DPosition c.imgvcfp_iv#1.Largefirm)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.gender c.imgvcfp#1.aged c.imgvcfp#1.stLintensive c.imgvcfp#1.DPosition c.imgvcfp#1.Largefirm = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.gender c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.stLintensive c.imgvcfp_iv#1.DPosition c.imgvcfp_iv#1.Largefirm)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.gender c.imgvcfp#1.aged c.imgvcfp#1.stLintensive c.imgvcfp#1.Largefirm = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.gender c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.stLintensive c.imgvcfp_iv#1.Largefirm)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.gender c.imgvcfp#1.aged c.imgvcfp#1.Largefirm = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.gender c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.Largefirm)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.aged c.imgvcfp#1.Largefirm = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.aged c.imgvcfp_iv#1.Largefirm)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.aged = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.aged)
*/

eststo im7: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.aged = imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.aged)

eststo im8: xi: ivreg2 nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.aged = imt_iv imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.aged) [pw= weight_adj_3 ] if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo im9: xi: ivreg2 nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (imgvcfp c.imgvcfp#1.stskill c.imgvcfp#1.aged = imt_iv imgvcfp_iv c.imgvcfp_iv#1.stskill c.imgvcfp_iv#1.aged) if overgexcpb==1, gmm2s cluster(stysuperstrata) first


//Table 3 Exports and Labor Market Outcomes-2SLS/ Table 4 in the supplement materials
eststo ex1: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (exvs= exvs_iv)

eststo ex2: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs= extf_iv exvs_iv)

/* Backward Selection
svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#1.HEdu c.exvs#2.gender c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#i.stskill c.extf#1.HEdu c.extf#2.gender c.extf#i.aged c.extf#i.stLintensive c.extf#1.DPosition c.extf#1.Largefirm c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#1.HEdu c.exvs_iv#2.gender c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#i.stskill c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.aged c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#1.Largefirm c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#1.HEdu c.exvs#2.gender c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#i.stskill c.extf#1.HEdu c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#1.Largefirm c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#1.HEdu c.exvs_iv#2.gender c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#i.stskill c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#1.Largefirm c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#1.HEdu c.exvs#2.gender c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#1.HEdu c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#1.Largefirm c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#1.HEdu c.exvs_iv#2.gender c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#1.Largefirm c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#1.HEdu c.exvs#2.gender c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#1.HEdu c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#1.HEdu c.exvs_iv#2.gender c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#1.HEdu c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#1.HEdu c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#1.HEdu c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#1.HEdu c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#1.HEdu c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#2.gender c.extf#i.stLintensive c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#2.gender c.extf_iv#i.stLintensive c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#1.Largefirm c.exvs#i.Stateowned c.extf#2.gender c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#1.Largefirm c.exvs_iv#i.Stateowned c.extf_iv#2.gender c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#i.Stateowned c.extf#2.gender c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#i.Stateowned c.extf_iv#2.gender c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#i.Stateowned c.extf#1.DPosition c.extf#i.Stateowned= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#i.Stateowned c.extf_iv#1.DPosition c.extf_iv#i.Stateowned)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.exvs#i.Stateowned c.extf#1.DPosition= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.exvs_iv#i.Stateowned c.extf_iv#1.DPosition)

svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition)
*/

eststo ex3: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition= extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition)


eststo ex4: xi: ivreg2 nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition=extint_iv extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition) [pw= weight_adj_3 ] if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo ex5: xi: ivreg2 nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (extf exvs c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition=extint_iv extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition) if overgexcpb==1, gmm2s cluster(stysuperstrata) first


// Table 8 in the supplement materials: Other Exports and VSE
eststo ex21: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.DPosition i.stLintensive ( ext exvs=  ext_iv exvs_iv)

eststo ex22: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.DPosition i.stLintensive ( extint exvs=  extint_iv exvs_iv)

eststo ex23: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.DPosition i.stLintensive ( exgvcfp exvs=  exgvcfp_iv exvs_iv)

eststo ex24: svy, subpop(overgexcpb): ivregress 2sls nnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.DPosition i.stLintensive ( exgvcfp=  exgvcfp_iv)

//Table 4 Job Separation and Entry-2SLS/ Table 5 in the supplement materials
eststo se1: svy, subpop(overgexcpb): ivregress 2sls nnnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (exvs extf c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition=extint_iv extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition)

eststo se2: svy, subpop(overgexcpb): ivregress 2sls entry i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs extf = exvs_iv extf_iv imint_iv im_iv)

eststo se3: svy, subpop(overgexcpb): ivregress 2sls entry i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv)

eststo se4: svy, subpop(overgexcpb): ivregress 2sls entryhg i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv)

// Table 6 in the supplement materials
eststo se5: xi: ivreg2 nnnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (exvs extf c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition=extint_iv extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition) [pw= weight_adj_3 ] if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo se6: xi: ivreg2 entry i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv) [pw= weight_adj_3 ] if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo se7: xi: ivreg2 entryhg i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv) [pw= weight_adj_3 ] if overgexcpb==1, gmm2s cluster(stysuperstrata) first


//Table 7 in the supplement materials
eststo se8: xi: ivreg2 nnnchsec i.stskill i.HEdu i.gender i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.aged i.DPosition i.stLintensive (exvs extf c.exvs#i.stskill c.exvs#i.aged c.exvs#i.stLintensive c.exvs#1.DPosition c.extf#1.DPosition=extint_iv extf_iv exvs_iv c.exvs_iv#i.stskill c.exvs_iv#i.aged c.exvs_iv#i.stLintensive c.exvs_iv#1.DPosition c.extf_iv#1.DPosition) if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo se9: xi: ivreg2 entry i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv) if overgexcpb==1, gmm2s cluster(stysuperstrata) first

eststo se10: xi: ivreg2 entryhg i.HEdu i.gender i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf = exvs_iv imgvcfp_iv extf_iv imint_iv im_iv) if overgexcpb==1, gmm2s cluster(stysuperstrata) first


//Table 5 Sector Switch and Incomes-FIML
eststo inc1: svy, subpop(overgexcpb): ivregress 2sls incinc stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stage i.stsec (exvs extf= exvs_iv extf_iv imint_iv)

eststo inc2: svy, subpop(overgexcpb): ivregress 2sls incdec stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stage i.stsec (exvs extf= exvs_iv extf_iv imint_iv)

eststo inc3: svy, subpop(overgexcpb): ivregress 2sls incinc stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stage i.stsec (exvs extf imgvcfp= exvs_iv extf_iv imint_iv imgvcfp_iv)

eststo inc4: svy, subpop(overgexcpb): ivregress 2sls incdec stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stage i.stsec (exvs extf imgvcfp= exvs_iv extf_iv imint_iv imgvcfp_iv)

eststo inc5: svy, subpop(overgexcpb): ivregress 2sls incinc stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stsec i.stage i.nnchsec (exvs extf imgvcfp= exvs_iv extf_iv imint_iv imgvcfp_iv)

eststo inc6: svy, subpop(overgexcpb): ivregress 2sls incdec stskill HEdu gender aged Largefirm Stateowned Humancap i.sty i.wave i.stregion i.stsec i.stage i.nnchsec (exvs extf imgvcfp= exvs_iv extf_iv imint_iv imgvcfp_iv)

//Table 6 Labor Market Outcomes and Individual Fixed Effects
eststo ind1: xi: xtivreg2 nnchsec i.stskill i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (extf exvs= extf_iv exvs_iv extint_iv)  [pw= weight_adj_3 ] if overgexcpb==1, fe r

eststo ind2: xi: xtivreg2 nnnchsec i.stskill i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec (extf exvs=extf_iv exvs_iv extint_iv imf_iv imint_iv)  [pw= weight_adj_3 ] if overgexcpb==1, fe r

eststo ind3: xi: xtivreg2 entry i.stage i.wave i.sty i.stregion Humancap (exvs imgvcfp extf=imgvcfp_iv extf_iv exvs_iv extint_iv im_iv)  [pw= weight_adj_3 ] if overgexcpb==1, fe r

eststo ind4: xi: xtivreg2 entryhg i.stage i.gender i.wave i.sty i.stregion Humancap (exvs imgvcfp extf=imgvcfp_iv extf_iv exvs_iv extint_iv im_iv) [pw= weight_adj_3 ] if overgexcpb==1, fe r

eststo ind5: xi: xtivreg2 incinc i.stskill i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.nnchsec (exvs imgvcfp extf= imgvcfp_iv extf_iv exvs_iv extint_iv) [pw= weight_adj_3 ] if overgexcpb==1, fe r

eststo ind6: xi: xtivreg2 incdec i.stskill i.Largefirm i.Stateowned Humancap i.stage i.wave i.sty i.stregion i.stsec i.nnchsec (exvs imgvcfp extf= imgvcfp_iv extf_iv exvs_iv extint_iv) [pw= weight_adj_3 ] if overgexcpb==1, fe r





